package com.article.service;

import com.article.service.base.BaseService;
import com.article.dto.ReturnError;
import com.article.model.ArticleInfo;

import java.util.List;

/**
 * Created by Administrator on 2017/5/2.
 */
public interface ArticleInfoService extends BaseService<ArticleInfo> {
    ReturnError saveArticle(ArticleInfo articleInfo);

    ReturnError updateArticle(ArticleInfo articleInfo);

    ReturnError removeArticle(String ids);

    List<ArticleInfo> listCount();

    ArticleInfo getLastArticle(Long id);

    ArticleInfo getNextArticle(Long id);

    ReturnError update(ArticleInfo articleInfo);
}
